import { ElMessage } from 'element-plus'

export const validateUserName = (username) => {
  if (username === '') {
    ElMessage({
      showClose: true,
      message: '请输入用户名',
      type: 'error'
    })
    return
  }
}

export const validatePassword = (password) => {
  if (password === '') {
    ElMessage({
      showClose: true,
      message: '请输入密码',
      type: 'error'
    })
    return
  }
}
